<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Index extends Controller 
{
	function __construct()
	{
		parent::Controller();
        $this->auth->CheckTaMeR(2);
        log_message('debug', "Control Panel->Index: Controler Class Initialized");
	}

	function index() 
	{
        $location = get_cookie('location');
		if($location !== FALSE)
		{
            del_cookie('location');
			redirect($location, 'location');
		}
        else
        {
            redirect('control_panel/person', 'location');
        }
	}
}
?>
